#!/bin/bash
# 下载NGINX源码并解压
wget "http://nginx.org/download/nginx-1.20.1.tar.gz"
ngx_tar=$(ls|grep "nginx-*)
if [ -z $ngx_tar" ]; then
    echo '压缩包下载失败！'
    exit
fi
echo "$ngx_tar"
tar -zxvf $ngx_tar